package com.zllkj.mm.api.net;


import java.util.HashMap;
import java.util.Map;

import rx.Observable;
import rx.Subscriber;

/**
 * 测试接口请求数据
 */
public class TestPost extends BaseEntity {
    //    回调sub
    private Subscriber mSubscriber;

    private String query;

    private String form;

    private String sign;


    public TestPost(Subscriber getTopMovieOnNext, String query , String form) {
        this.mSubscriber = getTopMovieOnNext;
        this.query=query;
        this.form=form;
        // 创建参数表
        Map<String, String> paramMap = new HashMap<String, String>();
        paramMap.put("query", query);
        paramMap.put("form", form);
        sign= NetTools.sign(/*secret*/"",paramMap);
    }

    @Override
    public Observable getObservable(HttpService methods) {
        return /*methods.test(sign,query,form)*/null;
    }

    @Override
    public Subscriber getSubscirber() {
        return mSubscriber;
    }

}